//
//  HJChatSessionModel.h
//  KaiChat
//
//  Created by lx on 2023/10/21.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@class HJChatMessageModel;



@interface HJChatSessionModel : NSObject


@property (nonatomic, copy) NSString *groupId;
@property (nonatomic, copy) NSString *sessionId;

@property (nonatomic, copy) NSString *receiveId;
@property (nonatomic, copy) NSString *receiveName;

@property (nonatomic, copy) NSString *sessionUserd;//会话的userId
@property (nonatomic, copy) NSString *sessionUid;//会话的user, uid

@property (nonatomic, copy) NSString *uid;

@property (nonatomic, copy) NSString *senderId;//群聊的时候要用到
@property (nonatomic, copy) NSString *senderName;//群聊的时候要用到

@property (nonatomic, copy) NSString *sessionName;
@property (nonatomic, copy) NSString *sessionAvatar;

@property (nonatomic, strong) NSString *unReadCount;

@property (nonatomic, copy) NSString *isMute;//1是, 2否
@property (nonatomic, copy) NSString *isTop;//1是, 2否

@property (nonatomic, assign) HJChatType chatType;
@property (nonatomic, assign) HJMessageType messageType;
@property (nonatomic, assign) HJMessageStatus msgStatus;
@property (nonatomic, assign) HJChatSystemMsgType systemMsgType;
@property (nonatomic, assign) HJChatOfficialType officialType;

@property (nonatomic, copy, nullable) NSString *content;

@property (nonatomic, copy, nullable) NSAttributedString *sessionNameAttributedstring;

@property (nonatomic, copy, nullable) NSString *readMessageTimestamp;
@property (nonatomic, copy, nullable) NSString *timestamp;
@property (nonatomic, copy, nullable) NSString *topTimestamp;

@property (nonatomic, copy) NSString *isSendMsg;         // 是否主动发送数据（@"1" 已经发送。@"0" 或者@""没有发送, 2是接收的）
@property (nonatomic, strong) NSArray *avatarUrls;
@property (nonatomic, copy) NSString *hasNotice; //只有当@"1"的时候才显示, 有值的时候才更新

+ (HJChatSessionModel *)sessionModelWithMessageModel:(HJChatMessageModel *)messageModel;

+ (HJChatSessionModel *)sessionModelWithSessionId:(NSString *)sessionId sessionUserd:(nullable NSString *)sessionUserd chatType:(HJChatType)chatType sessionName:(nullable NSString *)sessionName;
- (NSString *)getMessgetContent;

@end

NS_ASSUME_NONNULL_END
